# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-fastdiff
pkgver=0.3.0
pkgrel=1
pkgdesc="A fast native implementation of diff algorithm with a pure Python fallback"
url="https://github.com/syrusakbary/fastdiff"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
	py3-pytest-runner
	py3-setuptools
	"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/f/fastdiff/fastdiff-$pkgver.tar.gz"
options="!check" # Requires unpackaged native modules
builddir="$srcdir/fastdiff-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
dae82cb779dd869cef4e4e258e69f1d0cc2e4b177514fb4136f42f78273f20be45e71fad987c5b5632e95fa3a3bf61f5983f53c17d00b67cb079b403327e63ce  fastdiff-0.3.0.tar.gz
"
